package com.newtouch.bxzs.business.personal.controller;

import com.newtouch.bxzs.business.config.MyLog;
import com.newtouch.bxzs.business.personal.model.ScoreVO;
import com.newtouch.bxzs.business.personal.service.ScoreService;
import com.newtouch.bxzs.common.base.response.BaseResponse;
import com.newtouch.bxzs.common.base.response.RespGenerator;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * APP评分控制器
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2021年1月5日</td>
 * <td>xiongdianqiang</td>
 * <td>Create</td>
 * </tr>
 * </table>
 * 
 * @author xiongdianqiang
 * 
 * @version 1.0.0
 * @since 1.0.0
 */
@RestController
@SuppressWarnings("unchecked")
@Api(tags = "APP评分")
@RequestMapping(value = "/scoreController")
public class ScoreController {

	@Autowired
	private ScoreService scoreService;

	@ApiOperation("APP评分")
	@PostMapping(value = "/app/evaluateScore")
	@MyLog(systemFunctionName = "APP评分", systemFunctionUrl = "/scoreController/app/evaluateScore", userOperationType = 1, userOperationSummary = "APP评分")
	public BaseResponse<String> addEvaluateScore(@RequestBody ScoreVO scoreVO) {
		return RespGenerator.returnOK(scoreService.addEvaluateScore(scoreVO));
	}

}
